            // 初始数据
            var data = [5, 20, 36, 10, 10, 20];
            // 定义一个函数来生成新的数据
            function generateNewData() {
                return data.map(() => Math.floor(Math.random() * 50));
            }
            function updateText() {
                var myChart = document.getElementById('echart01');
                const chartInstance = myChart.getChartInstance();
                var myChart02 = document.getElementById('echart02');
                const chartInstance02 = myChart02.getChartInstance();
                console.log("sgc..........");
                // 生成新的数据
                var newData = generateNewData();

                // 更新图表的数据
                chartInstance.setOption({
                    xAxis: {
                        data:["衬衫", "羊毛衫", "雪纺衫", "裤子", "高跟鞋", "袜子"]
                    },
                    series: [{
                        data:newData
                    }]
                });
                chartInstance02.setOption({
                    xAxis: {
                        data:["衬衫", "羊毛衫", "雪纺衫", "裤子", "高跟鞋", "袜子"]
                    },
                    series: [{
                        data:newData
                    }]
                });
            }


            let timerId;
            if (!timerId) {
                    timerId = setInterval(updateText, 2000);
            }


